package com.ruoyi.xysl.mapper;

import com.xysl.api.domain.XyslMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单Mapper接口
 *
 * @author xysl
 * @date 2025-01-11
 */
public interface SysXyslMenuMapper
{
    /**
     * 查询菜单
     *
     * @param id 菜单主键
     * @return 菜单
     */
    public XyslMenu selectXyslMenuById(Long id);

    /**
     * 查询菜单列表
     *
     * @param xyslMenu 菜单
     * @return 菜单集合
     */
    public List<XyslMenu> selectXyslMenuList(XyslMenu xyslMenu);

    public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);

    /**
     * 新增菜单
     *
     * @param xyslMenu 菜单
     * @return 结果
     */
    public int insertXyslMenu(XyslMenu xyslMenu);

    /**
     * 修改菜单
     *
     * @param xyslMenu 菜单
     * @return 结果
     */
    public int updateXyslMenu(XyslMenu xyslMenu);

    /**
     * 删除菜单
     *
     * @param id 菜单主键
     * @return 结果
     */
    public int deleteXyslMenuById(Long id);

    /**
     * 批量删除菜单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteXyslMenuByIds(Long[] ids);
}
